package com.jinzhi.common.vo;

import lombok.Data;
import org.springframework.context.annotation.Configuration;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import javax.validation.constraints.Size;

/**
 * 微信统一下单参数说明
 */
@Configuration
@Data
public class WxPayVo {

		@Null
		private String appid;	//公众账号ID

		@Null
		private String mch_id;	//商户号

		@Size(min = 1,max = 32, message = "nonce_str长度范围有误")
		private String nonce_str;	//随机字符串

		@Null
		private String sign;	//签名

		@NotNull(message = "body不能为空")
		private String body;	//商品描述

		@Size(min = 1,max = 32, message = "out_trade_no长度范围有误")
		private String out_trade_no;	//商户订单号

		private String total_fee;	//标价金额

		private String spbill_create_ip;	//终端IP

		@Null
		private String notify_url;	//通知地址

		@NotNull(message = "trade_type不能为空")
		private String trade_type;	//交易类型

		@Null
		private String prepay_id;	//预支付交易会话标识

		@Null
		private String code_url;	//二维码链接

		private String openId;		//用户openId

		private String recharge_id;	//促销id

		private String attach;	//附加参数

		private long timeStamp;

		private int wxAppId;

		private Integer label;	//支付类型

		//101证书端  102培训端
		private Integer type;
}
